/*
 * @Author: your name
 * @Date: 2021-08-21 16:06:33
 * @LastEditTime: 2021-08-24 15:53:50
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue_study\src\network\user.js
 */
import {request} from './request'

export function register(data){
    return request({
        url:"/api/auth/register",
        method:"post",
        data
    })
}

export function login(data){
    return request({
        url:"/api/auth/login",
        method:"post",
        data
    })
}

export function logout(){
    return request({
        url:"/api/auth/logout",
        method:"post",
    })
}

export function getUser(){
    return request({
        url:"/api/user",
        method:"get",
    })
}